import request from '@/utils/request';
// POST /register/getAllRegisterByPage
export function getAllRegister(current, limit, query) {
  const query2 = {};
  Object.assign(query2, query);
  return request({
    url: `/api-clue/register/getAllRegisterByPage?current=${current}&limit=${limit}`,
    method: 'post',
    data: query2
  });
}
// POST /registerMid/ClueControllerAPI
export function getAllTwoRegister(current, limit, query) {
  const query2 = {};
  Object.assign(query2, query);
  return request({
    url: `/api-clue/registerMid/ClueControllerAPI?current=${current}&limit=${limit}`,
    method: 'post',
    data: query2
  });
}
// POST /registerEnd/ConfirmControllerAPI
export function getAllThreeRegister(current, limit, query) {
  const query2 = {};
  Object.assign(query2, query);
  return request({
    url: `/api-clue/registerEnd/ConfirmControllerAPI?current=${current}&limit=${limit}`,
    method: 'post',
    data: query2
  });
}
export function addRegister(params) {
  return request({
    url: '/api-clue/register/addRegister',
    method: 'post',
    data: params
  });
}

export function getOthers() {
  return request({
    url: '/api-clue/other/getOthers',
    method: 'get'
  });
}
// POST /register/commitRegister
export function commitRegister(params) {
  return request({
    url: '/api-clue/register/commitRegister',
    method: 'post',
    data: params
  });
}
// POST /registerMid/commitCol
export function commitCol(params) {
  return request({
    url: '/api-clue/registerMid/commitCol',
    method: 'post',
    data: params
  });
}
// POST /registerEnd/ConfirmcommitCol
export function ConfirmcommitCol(params) {
  return request({
    url: '/api-clue/registerEnd/ConfirmcommitCol',
    method: 'post',
    data: params
  });
}
// DELETE /register/deleteRegisterById/{id}
export function Delete(id) {
  return request({
    url: `/api-clue/register/deleteRegisterById/${id}`,
    method: 'delete'
  });
}
// POST /register/clueInfo/{clueId}
export function clueInfo(id) {
  return request({
    url: `/api-clue/register/clueInfo/${id}`,
    method: 'get'
  });
}

